{% extends 'base.html' %}
{% block base_body %}


<body class="layout-fixed layout-navbar-fixed">
  <div class="wrapper">
    <aside class="main-sidebar sidebar-dark-primary elevation-4">
          <ul class="nav nav-pills nav-sidebar flex-column">
            <li class="nav-item">
              <a href="#" class="nav-link">
                <i class="nav-icon fas fa-home"></i>
                <p>主页</p>
              </a>
            </li>
            <li class="nav-item">
              <a href="{{ url_for('personal.personal') }}" class="nav-link">
                <i class="nav-icon fas fa-wallet"></i>
                <p>个人设置</p>
              </a>
            </li>

            <li class="nav-item">
              <a href="#" class="nav-link">
                <i class="nav-icon fas fa-cog"></i>
                <p>我的喜欢</p>
              </a>
            </li>

                          <li class="nav-item">
              <a href="{{ url_for('post.post') }}" class="nav-link">
                <i class="nav-icon fas fa-cog"></i>
                <p>帖子发布</p>
              </a>
            </li>
                          <li class="nav-item">
              <a href="#" class="nav-link">
                <i class="nav-icon fas fa-cog"></i>
                <p>我的帖子</p>
              </a>
            </li>

              <li class="nav-item">
                  <a href="{{ url_for('check.check') }}" class="nav-link">
                      <i class="nav-icon fas fa-cog"></i>
                      <p>审核</p>
                  </a>
              </li>
          </ul>
    </aside>

    <nav class="main-header navbar navbar-expand navbar-white navbar-light">
      <ul class="navbar-nav">
          <li class="nav-item"><a class="nav-link" href="#" role="button" onclick="window.history.back();"><i class="fas fa-arrow-left"></i></a></li>
          <li class="nav-item"><a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a></li>
      </ul>
    </nav>

  <div class="content-wrapper">
      <section class="content">
          {% include 'flash.html' %}
        {% block main %}
        {% endblock %}
      </section>
    </div>
  </div>

<script>
  $(document).ready(function() {
    // 初始化 pushmenu
    $('body').toggleClass('sidebar-collapse');
  });
</script>

</body>


{% endblock %}